import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "./scss/styles.scss";
import "./scss/test.scss"
import * as bootstrap from "bootstrap";
import * as filters from "@/directives/fromtime"
import { $fetch } from "@/util/request"

import "./icons/index"
// import * as bootstrap from 'bootstrap'  将所有的具名导出 全部合并成一个对象  对象名bootstrap
console.log(bootstrap);

Vue.config.productionTip = false;
Vue.prototype.$fetch = $fetch
console.log("Vue", Vue.prototype);
for (let key in filters) {
  // console.log("正在注册过滤器", key, filters[key]);
  Vue.filter(key, filters[key])
}
new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
